package com.dgut.legalservice.service;

import com.dgut.legalservice.domain.User;

import java.util.List;

public interface UserService {

    public int addNormalUser(User sysUser);


    public int addLawUser(User sysUser);


    public int addManager(User sysUser);
    public int addUser(User user);
    public int insertUser(User user);
    public void updateNormal(User user);
    public void updateHead(User user);
    public void updateNormalBase(User user);
    public void updateNorUser(User user);  //更改基本信息
    public void updateCompanyInfo(User user);//更改公司信息
    public void updatePassword(User user);  //更新用户密码
    public void updateEmail(User user);  //更换邮箱
    public void updateSuper(User user); //超级管理员更新信息
    public void editUser(User user);

    public List<User> findByNameAndType(String realName,String type);   //根据真实姓名和用户类型查询账号
    public List<User> findByRealName(String realName);   //根据真实姓名查询账号
    public List<User> findByType(String type);   //根据用户类型查询账号
    public List<User> findAllNormal();
    public String findPhotoAttId(String loginName);
    public List<User> findManager();
    public User findByLoginName(String loginName);
    public List<User> findNotSuper();
    public List<User> findNormal();
    public User findById(Integer id);
    public void deleteUser(Integer id);

    public void ice(Integer id);
    //后台管理，解冻账号

    public void unIce(Integer id);
    //后台管理，重置密码

    public void resetPwdById(Integer id,String password);

    //登录注册板块************************************************
    public User findByEmail(String email);
    public String findQuestion(String loginName);
    public String findAnswer(String loginName);

}
